package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.SysCompanyType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCompanyClassificationMapper;
import com.ruoyi.system.domain.SysCompanyClassification;
import com.ruoyi.system.service.ISysCompanyClassificationService;

/**
 * 企业规模Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-14
 */
@Service
public class SysCompanyClassificationServiceImpl implements ISysCompanyClassificationService
{
    @Autowired
    private SysCompanyClassificationMapper sysCompanyClassificationMapper;

    /**
     * 查询企业规模
     * 
     * @param id 企业规模主键
     * @return 企业规模
     */
    @Override
    public SysCompanyClassification selectSysCompanyClassificationById(Integer id)
    {
        return sysCompanyClassificationMapper.selectSysCompanyClassificationById(id);
    }

    /**
     * 查询企业规模列表
     * 
     * @param sysCompanyClassification 企业规模
     * @return 企业规模
     */
    @Override
    public List<SysCompanyClassification> selectSysCompanyClassificationList(SysCompanyClassification sysCompanyClassification)
    {
        return sysCompanyClassificationMapper.selectSysCompanyClassificationList(sysCompanyClassification);
    }

    /**
     * 新增企业规模
     * 
     * @param sysCompanyClassification 企业规模
     * @return 结果
     */
    @Override
    public int insertSysCompanyClassification(SysCompanyClassification sysCompanyClassification)
    {
        sysCompanyClassification.setCreateTime(DateUtils.getNowDate());
        return sysCompanyClassificationMapper.insertSysCompanyClassification(sysCompanyClassification);
    }

    /**
     * 修改企业规模
     * 
     * @param sysCompanyClassification 企业规模
     * @return 结果
     */
    @Override
    public int updateSysCompanyClassification(SysCompanyClassification sysCompanyClassification)
    {
        sysCompanyClassification.setUpdateTime(DateUtils.getNowDate());
        return sysCompanyClassificationMapper.updateSysCompanyClassification(sysCompanyClassification);
    }

    /**
     * 批量删除企业规模
     * 
     * @param ids 需要删除的企业规模主键
     * @return 结果
     */
    @Override
    public int deleteSysCompanyClassificationByIds(Integer[] ids)
    {
        return sysCompanyClassificationMapper.deleteSysCompanyClassificationByIds(ids);
    }

    /**
     * 删除企业规模信息
     * 
     * @param id 企业规模主键
     * @return 结果
     */
    @Override
    public int deleteSysCompanyClassificationById(Integer id)
    {
        return sysCompanyClassificationMapper.deleteSysCompanyClassificationById(id);
    }

    /**
     * 修改企业规模状态
     *
     * @param sysCompanyClassification 企业规模信息
     * @return 结果
     */
    @Override
    public int updateSysCompanyClassificationStatus(SysCompanyClassification sysCompanyClassification)
    {
        return sysCompanyClassificationMapper.updateSysCompanyClassification(sysCompanyClassification);
    }
}
